<%@ page import="union.CompetenciasContrato" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'competenciasContrato.label', default: 'CompetenciasContrato')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
	</head>
	<body>
		
		<div class="nav" role="navigation">
			<ul class="nav nav-pills">
                   <g:permissao devePossuir="true" controles="competenciasContrato" acoes="list">
                           <li>
                                   <g:link class="list" action="list">
                                           <i class="icon-list-alt"></i>
                                           <g:message code="default.list.label" args="[entityName]" />
                                   </g:link>
                           </li>
                   </g:permissao>
                   <li class="divider-vertical"></li>
                   <g:permissao devePossuir="true" controles="competenciasContrato" acoes="create">
                           <li>
                                   <g:link action="create">
                                           <i class="icon-file"></i>
                                           <g:message code="default.add.label" args="[entityName]" />
                                   </g:link>
                           </li>
                   </g:permissao>
           </ul>
		</div>
		<div id="edit-competenciasContrato" class="content scaffold-edit" role="main">
			<legend><g:message code="default.edit.label" args="[entityName]" /></legend>
			<mensagem:renderizar mensagem="${flash}" />
			
			<g:hasErrors bean="${competenciasContratoInstance}">
			<div class="alert alert-error">
				<ul class="errors">
					<g:eachError bean="${competenciasContratoInstance}" var="error">
						<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
							<g:message error="${error}" />
						</li>
					</g:eachError>
				</ul>
			</div>
			</g:hasErrors>
			
			<g:form method="post" >
				<g:hiddenField name="id" value="${competenciasContratoInstance?.id}" />
				<g:hiddenField name="version" value="${competenciasContratoInstance?.version}" />
				<fieldset class="form">
					<g:render template="form"/>
				</fieldset>
				<fieldset class="buttons">

					<button type="submit" name="_action_update" class="btn" value="${message(code: 'default.button.update.label', default: 'Update')}" >
						<i class="icon-ok"></i> Editar
					</button>
					
					<button type="submit" name="_action_delete" class="btn" value="${message(code: 'default.button.delete.label', default: 'Delete')}" 
						onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Tem certeza que deseja remover?')}');" >
						<i class="icon-trash"></i> Remover
					</button>
					
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
